var totalScore,enterOrder;
var url = location.search; //获取url中"?"符后的字串
$(function(){
    if (url.indexOf("?") != -1) {
        var str = decodeURI(url.substr(1));
        var theRequest = new Object();
        var strs = str.split("&");
        for(var i = 0; i < strs.length; i ++) {
            theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);
        }
        totalScore = theRequest.totalScore;
        enterOrder = theRequest.enterOrder;
    }
    $('.pic-width').attr('src',$().AbsUrlParse("/static/page/images/img_juesai@3x.png"));
    if(enterOrder == 0 || enterOrder == '0' || enterOrder == 'undefined'){
        // 进入复赛，但没有排名结果
        $('.submit-result').html('恭喜您进入复赛');
        $('#submit-pic').attr('src',$().AbsUrlParse("/static/page/images/bg_fusai@3x.png"));
        $('.small-submit-result-two').html('50位投资人和100位专家正在进行线');
        $('.ranking-two').html('上评审，请您密切关注大赛进程！');
    } else {
        $('.submit-result').html('恭喜您进入决赛');
        $('#submit-pic').attr('src',$().AbsUrlParse("/static/page/images/bg_juesai@3x.png"));
        $('.small-submit-result').html('本次复赛得分' + totalScore + '分');
        $('.ranking').html('当前名次第' + enterOrder + '名');
        $('.small-submit-result-two').html('本次复赛得分' + totalScore + '分');
        $('.ranking-two').html('当前名次第' + enterOrder + '名');
    }
})
